package com.ruoyi.shop.trade.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单操作记录对象 shop_order_history
 * 
 * @author ruoyi
 * @date 2024-02-20
 */
public class ShopOrderHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 操作记录 */
    @Excel(name = "操作记录")
    private String operHistory;

    /** 操作动作 */
    @Excel(name = "操作动作")
    private String operAction;

    /** 操作ip */
    @Excel(name = "操作ip")
    private String operIp;

    /** 操作类型（0会员1后台2系统） */
    @Excel(name = "操作类型", readConverterExp = "0=会员1后台2系统")
    private Integer operType;

    /** 操作人id */
    @Excel(name = "操作人id")
    private Long operId;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOperHistory(String operHistory) 
    {
        this.operHistory = operHistory;
    }

    public String getOperHistory() 
    {
        return operHistory;
    }
    public void setOperAction(String operAction) 
    {
        this.operAction = operAction;
    }

    public String getOperAction() 
    {
        return operAction;
    }
    public void setOperIp(String operIp) 
    {
        this.operIp = operIp;
    }

    public String getOperIp() 
    {
        return operIp;
    }
    public void setOperType(Integer operType) 
    {
        this.operType = operType;
    }

    public Integer getOperType() 
    {
        return operType;
    }
    public void setOperId(Long operId) 
    {
        this.operId = operId;
    }

    public Long getOperId() 
    {
        return operId;
    }
    public void setOperTime(Date operTime) 
    {
        this.operTime = operTime;
    }

    public Date getOperTime() 
    {
        return operTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("operHistory", getOperHistory())
            .append("operAction", getOperAction())
            .append("operIp", getOperIp())
            .append("operType", getOperType())
            .append("operId", getOperId())
            .append("operTime", getOperTime())
            .toString();
    }
}
